<?php

/**
 * NfNearnews form.
 *
 * @package    nfzz
 * @subpackage form
 * @author     Francisco Calderón <fjcalderon@gmail.com>
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class NfNearnewsForm extends BaseNfNearnewsForm
{
  public function configure()
  {
	$this->setWidgets(array(
		'whats'    => new sfWidgetFormTextarea(),
	));
  
	$this->setValidators(array(
		'whats'    => new sfValidatorString(array('min_length' => 4), array(
			'required'   => 'The message field is required',
			'min_length' => 'The message "%value%" is too short. It must be of %min_length% characters at least.',
		)),
	));
  }
}
